local ItemData = require("bag.Proto").ItemData
local SkillNet = require("hero.Proto").SkillNet
local Attr = require("role.Proto").Attr
local DailyTaskData = require("dailyTask.Proto").DailyTaskData
local PremiumGift = require("absAct.Proto").PremiumGift

MoshouSkill = {
	{"id",		1,		"int"},     --id
	{"icon",    1,      "string"},  --图标
	{"name",    1,      "string"},  --名字
	{"desc",    1,      "string"},  --描述
	{"lv",      1,      "int"},    	--等级
	{"index",   1,      "byte"},    --技能索引
    {"state",	1,	    "byte"},
}

JingLianLvData = {
	{"lv",		1,		"short"},
	{"attr",	1,		Attr},
}

CG_MOSHOU_QUERY = {
	{"moshouID",	1,	"int"},
}

--魔兽已全部激活可升级时回调
MoshouLvUp = {
	{"nowJinDu",   1, "int"}, --当前升级进度
	{"needJinDu",  1, "int"}, --需要进度
	{"needItem",   2, ItemData}, --升级需要材料
}
MoshouLvUpNet = {
	{"moshouID",		1,	"int"},
	{"name",			1,	"string"},
	{"body",			1,	"int"},
	{"moshouLv",		1,	"short"},
	{"lvAttrs",			2,	Attr},
	{"moshouLvUp",		2,	MoshouLvUp}, --[0] = 0满级
}
MoshouReds = {
	{"lvUpRed",			1,	"byte"}, --升级标签页红点
	{"jinglianRed",		1,	"byte"}, --精炼标签页红点
	{"zhuHunRed",		1,	"byte"}, --铸魂标签页红点
	{"skillRed",		1,	"byte"}, --技能标签页红点
	{"xilianRed",       1,  "byte"}, --洗练标签页红点
}
GC_MOSHOU_LVUP_QUERY = {
	{"moshouLv",		1,	MoshouLvUpNet}, --魔兽升级
	{"jingLianLvData",	2,	JingLianLvData}, --魔兽精炼 [0] = 0 精炼等级为0
	{"moshouReds",		1,	MoshouReds}, --标签页红点
	{"xilianOpen",      1,   "byte"},    -- 魔兽洗练是否解锁
}

--升级
CG_MOSHOU_LVUP_UP = {
	{"upType",			1,	"byte"}, --0一次升级 1一键升级
}
GC_MOSHOU_LVUP_UP = {
	{"moshouLv",		1,	"short"},
	{"lvAttrs",			2,	Attr},
	{"moshouLvUp",		2,	MoshouLvUp}, --[0] = 0满级展示
}


CG_MOSHOU_SKILL_QUERY = {
	{"moshouID",		1,	"int"},
}

GC_MOSHOU_SKILL_QUERY = {
	{"moshouID",		1,	"int"},
	{"moshouSkill",		5,	MoshouSkill},
	{"skillMaxLv",		1,	"short"}, --等级可升级最高等级
	{"skillCanUp",		1,	"string"}, --魔兽x级可继续升级
	{"needItem",   		2, 	ItemData}, --升级需要材料
}

--技能升级
CG_MOSHOU_SKILL_UP = {
	{"moshouID",		1,	"int"},
}

--精炼
CG_MOSHOU_JINGLIAN_QUERY = {}
GC_MOSHOU_JINGLIAN_QUERY = {
	{"jingLianCanLV", 	1,	"short"}, --当前魔兽等级下精炼升级max等级
	{"nowLvData",		2,	JingLianLvData}, --[0] 精炼等级为0
	{"nextLvData",		2,	JingLianLvData}, --下一级 [0] = 0满级
	{"needItem",		2,	ItemData}, --升级所需
    {"attrs",			12,	Attr}, --当前所有精炼属性加成
}

--精炼升级
CG_MOSHOU_JINGLIAN_DO = {}

--铸魂
CG_MOSHOU_ZHUHUN_QUERY = {}
GC_MOSHOU_ZHUHUN_QUERY = {
	{"needItem",		1,	ItemData},
	{"nowAttr",			2,	Attr},
	{"nowUseCnt",		1,	"int"}, --当前已使用
	{"maxUseCan",		1,	"int"}, --当前魔兽等级最多可使用x
}

--使用铸魂
CG_MOSHOU_ZHUHUN_DO = {
	{"useCnt",			1,	"int"},
}

--魔兽预览图
CG_MOSHOU_PREVIEW = {}
MoshouPreView = {
	{"moshouID",		1,	"int"},
	{"name",			1,	"string"},
	{"body",			1,	"int"},
}
GC_MOSHOU_PREVIEW = {
	{"preViews",		5,	MoshouPreView}, --预览信息
}

--魔兽上阵查询
CG_MOSHOU_PUT_QUERY = {}
MoshouPutOn = {
	{"moshouID",		1,	"int"},
	{"moshouName",		1,	"string"},
	{"moshouIcon",		1,	"int"},
	{"moshouLv",		1,	"short"},
	{"moshouSkill",		1,	MoshouSkill},
}
GC_MOSHOU_PUT_QUERY = {
	{"moshouPutOn",		5,	MoshouPutOn},
}

-- 魔兽布阵界面查询
CG_MOSHOU_COMBAT_SKILL_QUERY = {
    {"combatType",1,"byte"},        -- 战斗类型
}

GC_MOSHOU_COMBAT_SKILL_QUERY = {
    {"skill",       5,  MoshouSkill},    -- 技能详情
}

------------------------------- 魔兽洗练   start  -----------------
MoshouXilianCao = {
	{"id",           1,    "int"},
	{"index",        1,    "byte"},
	{"rare",         1,   "byte"},
	{"lv",           1,    "byte"},
	{"name",         1,    "string"},
	{"needZuanshi",  1,    "int"},
	{"attrs",        3,   Attr},
	{"nextAttr",     3,    Attr},
	{"nextRate",     1,    "byte"},
	{"nextName",     1,   "string"},
	{"item",         1,    ItemData},
}
CG_MOSHOU_XILIAN_QUERY = {
	{"index",         1,    "byte"},
}

GC_MOSHOU_XILIAN_QUERY = {
	{"list",         6,    MoshouXilianCao},
	{"fjAttrs",      3,   Attr},          -- 附加属性
	{"index",        1,      "byte"},
	{"openLv",       6,    "int"},
}

CG_MOSHOU_XILIAN_OP = {
	{"op",         1,    "byte"},           -- 1 洗练     2 保存
	{"index",      1,    "byte"},
	{"type",       1,    "byte"},           -- 1 道具洗练  2 钻石洗练   0  非洗练
}

CG_MOSHOU_XILIAN_GIFT_QUERY = {
}

GC_MOSHOU_XILIAN_GIFT_QUERY = {
	{"list",       5,   PremiumGift},
}


------------------------------- 魔兽洗练   end  -----------------